<?php
namespace Index\Controller;
use Think\Controller;
class AnswerController extends Controller {
	public function answerAction(){
		$uid = $_SESSION['uid'];//回复id
		$qid = I('post.id');//问题id
		$textarea = I('post.textarea');//回复内容
		var_dump($uid);
		var_dump($qid);
		var_dump($textarea);

//		$Model = M();
//
//		$sql = "insert into `answer` (uid,qid,content) VALUES('{$uid}','{$qid}','{$textarea}')";

//		if($Model->execute($sql)){
//			$this->success('回复成功','',2);
//		} ;
	}
}